package com.adtec.base.cloud.baseservice.rbac.system.model;

import com.adtec.base.cloud.commons.model.tree.DataTree;
import com.adtec.base.cloud.persistence.system.model.SysApi;

import java.util.List;

public class SysApiNode extends SysApi implements DataTree<SysApiNode,Long> {

    private List<SysApiNode> children;

    @Override
    public Long getParentId() {
        return super.getApiPid();
    }

    @Override
    public void setChildren(List<SysApiNode> children) {
        this.children = children;
    }

    @Override
    public List<SysApiNode> getChildren() {
        return this.children;
    }
}
